import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: "/login"
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/XJH/Login.vue')
    },
    {
      path: '/Homepage',
      name: 'Homepage',
      component: () => import('../views/Text.vue'),
      children:[
        {
          path: '/Welcome',
          name: 'Welcome',
          component: () => import('../views/LMR/Text.vue')
        },
        {
          path: '/Classification',
          name: 'Classification',
          component: () => import('../views/LMY/Classification.vue')
        },
        {
          path: '/Shopping',
          name: 'Shopping',
          component: () => import('../views/LMY/Text.vue')
        },
        {
          path: '/My',
          name: 'My',
          component: () => import('../views/ZJM/Text.vue')
        }
      ]
    },
    
  ]
})

export default router
